<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib prefix="s" uri="/struts-tags" %>

<c:set var="adminChoice"><c:out value="${sessionScope.sessionCurrentAdminTab}" default="StockList"/></c:set>

<div id="menu">
	<ul>
		<c:choose>
			<c:when test="${adminChoice=='StockList'}"><c:set var="current" value="current"/></c:when>
			<c:otherwise><c:set var="current" value=""/></c:otherwise>
		</c:choose>
		<li class="${current}"><a href="<c:url value="/admin/StockList/show.action"/>"><fmt:message key="pharma.admin.tab.stockList"/></a></li>
		
		<c:choose>
			<c:when test="${adminChoice=='StandardEquipment'}"><c:set var="current" value="current"/></c:when>
			<c:otherwise><c:set var="current" value=""/></c:otherwise>
		</c:choose>
		<li class="${current}"><a href="<c:url value="/admin/StandardEquipment/show.action"/>"><fmt:message key="pharma.admin.tab.standardEquipment"/></a></li>
		
		<c:choose>
			<c:when test="${adminChoice=='Crud'}"><c:set var="current" value="current"/></c:when>
			<c:otherwise><c:set var="current" value=""/></c:otherwise>
		</c:choose>
		<li class="${current}"><a href="<c:url value="/admin/Crud/show.action"/>"><fmt:message key="pharma.admin.tab.crud"/></a></li>
		
		<c:choose>
			<c:when test="${adminChoice=='User'}"><c:set var="current" value="current"/></c:when>
			<c:otherwise><c:set var="current" value=""/></c:otherwise>
		</c:choose>
		<li class="${current}"><a href="<c:url value="/admin/User/show.action"/>"><fmt:message key="pharma.admin.tab.user"/></a></li>
		
		<c:choose>
			<c:when test="${adminChoice=='Parameter'}"><c:set var="current" value="current"/></c:when>
			<c:otherwise><c:set var="current" value=""/></c:otherwise>
		</c:choose>
		<li class="${current}"><a href="<c:url value="/admin/Parameter/show.action"/>"><fmt:message key="pharma.admin.tab.parameter"/></a></li>
	</ul>
</div>